import http from "@/api/axios";

export const getListApi = (data: DriverManagement.SearchForm) => {
  return http({
    method: "post",
    url: "/base/biz/bizUserDriverArea/pageDriverUser",
    data
  });
};
export const addDriverApi = (data: Base.GeneraDataType) => {
  return http({
    method: "post",
    url: "/base/biz/bizUserDriverArea/save",
    data
  });
};
// 查看指定司机分配的区域
export const getAreaByUserIdApi = (id: string) => {
  return http({
    method: "get",
    url: `/base/biz/bizUserDriverArea/listByUserId/${id}`
  });
};
